<div id='record_list'>
	<div style='margin:10px;padding-bottom:5px;border-bottom:1px solid #ccc'>
		<div style='display:flex'>被请求挪车　号牌：吉EEJ355</div>
		<div>时间：2017-12-12 18:22:42</div>
		<div style='text-align:right'><button>骚扰投诉</button></div>
	</div>
</div>
<div style="text-align:center;margin:20px" id="fpage"> </div>


<div style='border:0px solid;text-align:center'>
	<div>投诉原因：</div><br>
	<textarea name="" id="" style='width:250px;height:150px;resize:none'></textarea><br><br>
	<div>
		<button>提交</button>
		<button>返回</button>
	</div>
</div>

<script>
	if(!sessionStorage.record_pnow){
		sessionStorage.record_pnow = 1;
	}
	Record_Get_List();

function Record_Get_List(){
	var type = 'record_get_list';
	Get_Token(type,function(t){
		var data = {
			type:type,
			token:t,
			pnow:sessionStorage.record_pnow
		};
		Ajax(data,function(res){
			//C(res);
			if(!/^{.*}$/.test(res)){
				return;
			}
			var info = JSON.parse(res);
			var data = info.data;

			var record_list_str = '';
			for(var i=0;i<data.length;i++){
				record_list_str += "<div style='margin:10px;padding-bottom:5px;border-bottom:1px solid #ccc'>";
				if(data[i].openid1 == GetCookie('openid')){
					var move_stat = '请求挪车';
				}else{
					var move_stat = '被请求挪车';
				}
				record_list_str += "<div style='display:flex'>"+data[i].id+'---'+move_stat+"　号牌："+data[i].number+"</div>";
				record_list_str += "<div>时间：2017-12-12 18:22:42</div>";
				if(data[i].openid1 != GetCookie('openid')){
					record_list_str += "<div style='text-align:right'><button onclick=record_complaint("+data[i].id+") >骚扰投诉</button></div>";
				}
				record_list_str += "</div>";
			}
			$('#record_list').html(record_list_str);
			Fpage4(info.pnow,info.max_page,function(pnow){
				sessionStorage.record_pnow = pnow;
				Record_Get_List();
			},3,2);


		});
	});
}

</script>